package com.grow.greenhouse.service;

import com.grow.greenhouse.domain.Userthreshold;
import com.baomidou.mybatisplus.extension.service.IService;
import com.grow.greenhouse.domain.request.DailyNumRequest;
import com.grow.greenhouse.domain.request.UpdateAllThresholdRequest;
import com.grow.greenhouse.domain.request.UpdateOneThresholdRequest;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
* @author 23854
* @description 针对表【userthrehold(用户设置数据阈值)】的数据库操作Service
* @createDate 2024-01-29 12:34:47
*/
public interface UserthreholdService extends IService<Userthreshold> {

    Map<String,String> getOneThreshold(DailyNumRequest dailyNumRequest, HttpServletRequest request);

    List<Map<String,String>> getAllThreshold(String shedName, HttpServletRequest request);

    String updateThreshold(UpdateOneThresholdRequest thresholdRequest, HttpServletRequest request);

    String updateAllThreshold(UpdateAllThresholdRequest thresholdRequest, HttpServletRequest request);

    List<String> getSystemCropName();
}
